from machine import ADC
import time

adc = ADC(1, 10) 

while True:
    value = adc.read() 
    voltage = value / 4096.0 * 3.3
    print('PC0: %.2fV' % voltage)
    time.sleep(1)

